package cpt202.project.dao;

import cpt202.project.entity.Book;
import cpt202.project.entity.Record;
import org.springframework.stereotype.Service;

@Service
public interface RecordMapper {
    //插入，并通过返回的行数判断是否成功
    Integer addRec(Record data);

    //更新一个记录
    Integer updateRec(Record data);

    //删除一个记录，根据recordId来删
    Integer deleteRec(int recordid);

    //根据bookid获取所有在该账本中的records
    Record[] userRecord(Integer bookid);

}
